<template>
    <div ref="body">
        <Button type="success" size="small" style="margin-right: 5px" @click="look">查看
        </Button>
        <demo-modal ref="modal"></demo-modal>
        <c-modal :visible="visible" :top="50">
           <div>111111111111111</div>
        </c-modal>
    </div>

</template>
<script>

    import demoModal from '../db_application_approve/applicationModal';
    import CModal from "../../../components/custom/CModal";

    export default {
        components: {
            CModal,
            demoModal},

        methods: {
            look() {
                this.$refs.modal.visible = true;
                var row = new Object();
                row.ss12001Id = "11";
                var width = this.$refs.body.clientWidth;
                this.$refs.modal.edit(row, width);
            }
        },
        created() {

        },
        data() {
            return {
                visible:true
            }
        }
    }
</script>
<style scoped>
</style>